package com.chima.service;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.chima.domain.Employees;
import com.chima.domain.MiddleEmpRate;
import com.chima.domain.PageRequestBean;
import com.chima.domain.PageResponseBean;
import com.chima.domain.Rate;
@Transactional
public interface RateService {
	public PageResponseBean findRate(PageRequestBean pageRequestBean);
	public  void updateGrade(Double grade ,int  id) ;
	public Rate findRateById( int id );
	public List<Rate> findByDate( String date );
	public void save(Rate rate) ;
	public void insertRate();
	public List<Rate> findByDateaAndDepart(String serchdate,int searchdepartment);
	public List<Rate> findByDepart(int searchdepartment);
	public void savaOrupdateRate(String serchdate, Employees e);
	/**
	 * 中层评价显示
	 * 
	 */
	public PageResponseBean findMiddleRate(PageRequestBean pageRequestBean);
	public  void updateMiddleGrade(Double grade ,int  id) ;
	public List<Rate> findMiddleEmpRateByDate(String  date,int position);
	
	public List<MiddleEmpRate> findMiddleEmpRateByDateAndDept(String  date, String dept);
	public void saveMiddleEmpRate (MiddleEmpRate m) ;
	public void savaOrupdateMiddleRate(String serchdate, Employees e);
	
	public Rate findByEmpAndDate(Employees emp,String date);
	public  void updateWorkDay(int workday ,int  id) ;
	public  void  deleterate (int empid ) ;
}
